import {
  params
} from '@/api/config'
import axios from "axios"

export function getLyric(mid) {
  const url = '/api/lyric'
  const data = Object.assign({}, params, {
    pcachetime: +new Date(),
    songmid: mid,
    loginUin: 0,
    hostUin: 0,
    platform: "yqq",
    needNewCode: 0,
    format:"json"
  })

  return axios.get(url,{
      params:data
  }).then((res)=>{
      return Promise.resolve(res.data)
  })
}
